// pages/notify/index.ts
Page({
  data: {
    detailInfo: {}
  },
  onLoad (query) {
    this.getDetail(query.id)
  },
  async getDetail (id) {
    const { data: detailInfo } = await wx.http.get(`/announcement/${id}`)
    this.setData({
      detailInfo
    })
  }
})
